/* For Lesson Section */
.lessonBox{
    border: 2px solid transparent;
    border-radius: 5px;
    padding: 10px;
    box-shadow: 0px 3px 6px 2px var(--primary-shadow-200);
}

.courseList, .lessonList{
    list-style-type: none;
    padding-inline-start: 0;
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin: 20px;
}

/* Course Section Styling */
.courseSection {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.courseSection > h2 {
    margin: 0;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-green-500);
    color: var(--primary-green-600);
}

.courseSubList {
    list-style-type: none;
    padding-inline-start: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 0;
}

.courseCard, .lessonCard{
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr auto auto;

    border: 2px solid transparent;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0px 3px 6px 2px var(--primary-shadow-200);

    width: auto;
    cursor: pointer;
    transition: all 0.25s ease-in-out;
}

.courseCard h3, .lessonCard h3{
    margin: 10px 0px;
}
.courseCard > p, .lessonCard > p{
    color: rgba(0,0,0,0.5);
}
.lessonCard > a{
    margin: 10px 0px;
}
.courseCard:hover, .lessonCard:hover{
    transform: translate(0px, -2px);
    color: var(--primary-yellow-600);
    box-shadow: 0px 3px 6px 2px var(--primary-yellow-600);
}

.counterBox{
    display: flex;
    justify-content: center;
}

/* use to solve 2 paragraph sit next to each other*/
.inlineElement{
    font-size: 20px;
    margin: 0px 2px 5px;
}
/* this too */
.restrictDesc{
    max-width: 100%;
    overflow-wrap: break-word;
    word-break: break-word;
    white-space: normal;
}

.editCard{
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    z-index: 999;

    background-color: white;
    padding: 20px;
    border-radius: 12px;

    box-shadow: 0 10px 30px var(--primary-shadow-300);
}

/*for form & input section*/
.formBox{
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 300px;
}

.inputBox{
    padding: 8px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

/* Progress Bar Styling */
.progressBar {
    width: 100%;
    height: 24px;
    background-color: #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #999;
    box-shadow: inset 0 2px 4px var(--primary-shadow-100);
    margin: 10px 0px;
}

.progressFill {
    height: 100%;
    background: linear-gradient(90deg, #4ae94a, #2ecc71);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    color: white;
    text-shadow: 0 1px 2px var(--primary-shadow-200);
    transition: width 0.3s ease-in-out;
    border-radius: 12px;
}

.hidden{
    display: none;
}